//
//  AKPPushTestViewController.m
//  Copy_AiKapPu_Personal_OC
//
//  Created by taojianz on 2017/7/12.
//  Copyright © 2017年 taojianz. All rights reserved.
//

#import "AKPPushTestViewController.h"

@interface AKPPushTestViewController ()

@end

@implementation AKPPushTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *title = [[NSString alloc] initWithFormat:@"第%zd个视图",self.navigationController.viewControllers.count ];
    
    [self setTitle:title];
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"push" style:UIBarButtonItemStylePlain target:self action:@selector(showNext)];
    
    self.navigationItem.rightBarButtonItems = @[item];
    
    self.view.backgroundColor = [UIColor redColor];
        
}

-(void)showNext{
    
    AKPPushTestViewController *vc = [[AKPPushTestViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:true];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
